<h2>Creating a new assignment for <%= @task.name %></h2>
<%= render :partial => "tasks/task_info" %>
<% form_for [@project, @task, @assignment] do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label "New assignment" %><br />
    <%= f.text_field :name %>
  </p>
  <p>
    <%= f.label :start_time %><br />
    <%= f.datetime_select :start_time %>
  </p>
  <p>
    <%= f.label :due_by %><br />
    <%= f.datetime_select :due_by %>
  </p>
  <p>
    <%= f.label "Descriptions" %><br />
    <%= f.text_area :desc %>
  </p>
  <p>
    <%= f.submit 'Create' %>
  </p>
<% end %>

<%= link_to 'Back', project_task_path(@project,@task) %>